package com.cj.pojo.dto;

import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.URL;

public class AvatarUpdateDTO {
    @NotNull(message = "头像URL不能为空")
    @URL(message = "头像URL格式不正确")
    private String avatarUrl;

    // Getters and Setters
    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
}
